package com.numbfish.ch02_ex02_bean_factory_postprocessor.config;

import com.numbfish.ch02_ex02_bean_factory_postprocessor.pojo.Person;
import com.numbfish.ch02_ex02_bean_factory_postprocessor.processor.CustomBeanFactoryPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CustomConfig {
    @Bean
    public Person person(){
        return new Person("曹操",44);
    }

    @Bean
    public CustomBeanFactoryPostProcessor customBeanFactoryPostProcessor(){
        return new CustomBeanFactoryPostProcessor();
    }
}
